home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / gcc / ixemlsrc.lha / ixemul / man / cat2 / rmdir.0 < prev    next >
Text File  |  1996-03-13  |  3KB  |  133 lines

  1.  
  2. RMDIR(2)                   UNIX Programmer's Manual                   RMDIR(2)
  3.  
  4. NNAAMMEE
  5.      rrmmddiirr - remove a directory file
  6.  
  7. SSYYNNOOPPSSIISS
  8.      ##iinncclluuddee <<uunniissttdd..hh>>
  9.  
  10.      _i_n_t
  11.      rrmmddiirr(_c_o_n_s_t _c_h_a_r _*_p_a_t_h)
  12.  
  13. DDEESSCCRRIIPPTTIIOONN
  14.      RRmmddiirr() removes a directory file whose name is given by _p_a_t_h. The direc­
  15.      tory must not have any entries other than `.' and `..'.
  16.  
  17. RREETTUURRNN VVAALLUUEESS
  18.      A 0 is returned if the remove succeeds; otherwise a ­1 is returned and an
  19.      error code is stored in the global location _e_r_r_n_o.
  20.  
  21. EERRRROORRSS
  22.      The named file is removed unless:
  23.  
  24.      [ENOTDIR]       A component of the path is not a directory.
  25.  
  26.      [EINVAL]        The pathname contains a character with the high­order bit
  27.                      set.
  28.  
  29.      [ENAMETOOLONG]  A component of a pathname exceeded 255 characters, or an
  30.                      entire path name exceeded 1023 characters.
  31.  
  32.      [ENOENT]        The named directory does not exist.
  33.  
  34.      [ELOOP]         Too many symbolic links were encountered in translating
  35.                      the pathname.
  36.  
  37.      [ENOTEMPTY]     The named directory contains files other than `.' and
  38.                      `..' in it.
  39.  
  40.      [EACCES]        Search permission is denied for a component of the path
  41.                      prefix.
  42.  
  43.      [EACCES]        Write permission is denied on the directory containing
  44.                      the link to be removed.
  45.  
  46.      [EPERM]         The directory containing the directory to be removed is
  47.                      marked sticky, and neither the containing directory nor
  48.                      the directory to be removed are owned by the effective
  49.                      user ID.
  50.  
  51.      [EBUSY]         The directory to be removed is the mount point for a
  52.                      mounted file system.
  53.  
  54.      [EIO]           An I/O error occurred while deleting the directory entry
  55.                      or deallocating the inode.
  56.  
  57.      [EROFS]         The directory entry to be removed resides on a read­only
  58.                      file system.
  59.  
  60.      [EFAULT]        _P_a_t_h points outside the process's allocated address
  61.                      space.
  62.  
  63. SSEEEE AALLSSOO
  64.      mkdir(2),  unlink(2)
  65.  
  66. HHIISSTTOORRYY
  67.      The rrmmddiirr function call appeared in 4.2BSD.
  68.  
  69. 4.2 Berkeley Distribution       March 10, 1991                               2
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.